package adapterPattem
{

    public class TurkeyAdapter implements IDuck
    {
        private var _turkey:ITurkey;

        public function TurkeyAdapter(turkey:ITurkey)
        {
            this._turkey = turkey;
        }

        public function quack():void
        {
            this._turkey.gobble();
        }

        public function fly():void
        {
            for(var i:int = 0; i < 5; i++)
            {
                this._turkey.fly();
            }
        }
    }
}